package com.meatball.iot.driver.doormagnet.data

import com.alibaba.fastjson.annotation.JSONField
import com.meatball.iot.driver.doormagnet.enums.Cmd
import com.meatball.iot.driver.doormagnet.enums.Event
import com.meatball.iot.driver.doormagnet.enums.State

/**
 * TODO 度云门磁解析
 *
 * @property cmd 消息类型
 * @property state 状态
 * @property event 事件
 * @property vBat 电压
 * @property csq 信号强度
 */
data class DuYunDto(
    val cmd: Cmd,
    val state: State? = null,
    val event: Event? = null,
    @JSONField(name = "vbat")
    val vBat: Double,
    val csq: Int
)
